import React,{useEffect} from 'react';
import Header from './Header'
import Content from './Content'
import {useNavigate } from 'react-router-dom'

export default function Test2() {
    let navigate = useNavigate()
    useEffect(()=>{
        navigate('/home/cusState')
        return(()=>{
            navigate('/home')
        })
        // eslint-disable-next-line
    },[])
    // const getHeader
    function getHeaderName(headerName){
        console.log(headerName);
    }
    return (
        <div>
            <Header getHeaderName={getHeaderName}/>
            <Content/>
        </div>
    )
}
